<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<%@ include file="/common-app/taglibs.jsp"%>
<c:if test="${not empty param.xmlstr}">
<x:parse xml="${param.xmlstr}" var="xmlData" />
</c:if>
          <div class="bar_btn">
				<span class="left"> 
					<c:set var="grantCode"><x:out select="$xmlData/data/proposal/grant_code" /></c:set>
			        <c:set var="flag_shizhi"><x:out select="$xmlData/data/proposal/flag_shizhi" /></c:set>
					<input name="Submit" type="button" class="button_01" value="保存" onclick="saveAction()" /> 
					&nbsp; <c:if test="${not empty fbl.pdfViewUrl}"><input name="Submit" type="button" class="button_01" value="下载PDF"  onclick="genPdfAction()"/></c:if>
					<security:authorize ifNotGranted="A_DAILU_PROPOSAL">
						   <c:set var="depart_code"><x:out select="$xmlData/data/proposal/depart_code"/></c:set>
						   <c:if test="${empty depart_code}">
						   &nbsp; <input name="Submit" type="button" class="button_01"	value="提交给单位管理员" onclick="submitAction()" />
						   </c:if>
							<c:if test="${not empty depart_code}">
						   &nbsp; <input name="Submit" type="button" class="button_01"	value="提交给二级部门管理员" onclick="submitAction()" />
						   </c:if>
					</security:authorize>
					<security:authorize ifAnyGranted="A_DAILU_PROPOSAL">
					<c:set var="recomend_org_type" scope="request"><x:out select="$xmlData/data/proposal/recomend_org_type" /></c:set>
					      <c:if test="${recomend_org_type=='17' }">&nbsp; <input name="Submit" type="button" class="button_01"	value="提交到县区主管单位" onclick="submitAction()" /></c:if>
					      <c:if test="${recomend_org_type!='17' }">&nbsp; <input name="Submit" type="button" class="button_01"	value="提交到归口管理部门" onclick="submitAction()" /></c:if>
					</security:authorize> 
					&nbsp; <input name="Submit" type="button" class="button_01" value="返回" onclick="backToList()" />
				</span>
				<span class="right"> 
					<input title="填写检查" class="btn_inspect" type="button" id="wbox1"/>
				</span>
				<c:if test="${not empty param.template }">
				<span class="right">
				<input name="Submit" type="button" class="button_01" value="填写说明" onclick="return ContentDownDesc('${param.template}');" />&nbsp;&nbsp;
				</span>
				</c:if>
				<c:set var="sub_grant_code" scope="request"><x:out select="$xmlData/data/proposal/sub_grant_code" /></c:set>
				     <!--    重点研发计划--科技合作领域不需要填写检查 -->
				<c:if test="${sub_grant_code != 2919 and empty param.template}">
<%--				<span class="right"><cpt:prpFile fileType="filldescription"--%>
<%--						grantCode="${sub_grant_code}" showName="填写说明"></cpt:prpFile>--%>
<%--				</span>--%>
				</c:if>
					
			</div>
			